<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title>新建收货地址</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/reset.css" />
		<link rel="stylesheet" href="css/main.css" />
		<link rel="stylesheet" href="css/mui.picker.css" />
		<link rel="stylesheet" href="css/mui.poppicker.css" />
		<script src="js/tailwindcss.js"></script>
		<style>
			.mui-bar-tab  {
				padding: 0 0.625rem;
			}
			.mui-bar {
				box-shadow: none;
			}
			.mui-bar-tab button {
				width: 100%;
				background: #ff4f00;
				border: none;
				border-radius: 2.125rem;
				color: #ffffff;
				
			}
			 .mui-btn {
				 padding: 8px 12px;
			 }
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">新建收货地址</h1>
		</header>
		<div class="mui-content">
			<form class="mui-input-group">
				<div class="mui-input-row">
					<label>收货人:</label>
					<input type="text" class="mui-input-clear" placeholder="请填写收货姓名">
				</div>
				<div class="mui-input-row">
					<label>联系电话:</label>
					<input type="text" class="mui-input-clear" placeholder="请填写收货人手机号">
				</div>
				<div class="mui-input-row">
					<label>省市区:</label>
					<div id='showCityPicker3' style="font-size: 0.75rem;line-height: 2.5rem;color: #9ca3af;">
						请选择省市区</div>
				</div>
				<div class="mui-input-row">
					<label>详细地址:</label>
					<input type="text" class="mui-input-clear" placeholder="请输入详细地址">
				</div>
			</form>
		</div>
		<nav class=" mui-bar-tab">
			<a href="address.html">
				<button type="button" class="mui-btn">保存</button>
			</a>
		</nav>
		<nav class=" mui-bar-tab">
			<a href="address.html">
				<button type="button" class="mui-btn" style="background: #999;">删除</button>
			</a>
		</nav>
		<script src="js/mui.js"></script>
		<script src="js/mui.picker.js"></script>
		<script src="js/mui.poppicker.js"></script>
		<script src="js/city.data-3.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			mui.init()
			mui('body').on('tap', 'a', function() {
				document.location.href = this.href;
			});
			(function($, doc) {
				$.init();
				$.ready(function() {
					/**
					 * 获取对象属性的值
					 * 主要用于过滤三级联动中，可能出现的最低级的数据不存在的情况，实际开发中需要注意这一点；
					 * @param {Object} obj 对象
					 * @param {String} param 属性名
					 */
					var _getParam = function(obj, param) {
						return obj[param] || '';
					};
					var cityPicker3 = new $.PopPicker({
						layer: 3
					});
					cityPicker3.setData(cityData3);
					var showCityPickerButton = doc.getElementById('showCityPicker3');
					var cityResult3 = doc.getElementById('showCityPicker3');
					showCityPickerButton.addEventListener('tap', function(event) {
						cityPicker3.show(function(items) {
							cityResult3.innerText = _getParam(items[0], 'text') + " " + _getParam(items[1], 'text') + " " + _getParam(items[2], 'text');
							//返回 false 可以阻止选择框的关闭
							//return false;
						});
					}, false);
				});
			})(mui, document);
		</script>
	</body>

</html>